#!/usr/bin/env bash

CONFIG=$1
WORKDIR=$2
GPUS=$3
NODES=$4
MASTER_ADRESS=10.
PORT=

PYTHONPATH="$(dirname $0)/..":$PYTHONPATH \
python -m torch.distributed.launch --nproc_per_node=$GPUS --nnodes=$NODES --master_addr=$MASTER_ADRESS --master_port=$PORT  \
    $(dirname "$0")/train.py $CONFIG --workdir $WORKDIR --launcher pytorch 
